<!--{template common/header}-->
<!--{eval require_once("template/banzhuan_weibo/touch/forum/thread_list.php");}-->

<!-- header start -->
<div class="mobile">
	<!--{if $_G['setting']['domain']['app']['mobile']}-->
	{eval $nav = 'http://'.$_G['setting']['domain']['app']['mobile'];}
	<!--{else}-->
	{eval $nav = "forum.php";}
	<!--{/if}-->
	<div class="mobile-inner bz">
		<div class="mobile-inner-header">
			<div style="float: left;width: 22%;height: 34px;margin-top: 6px;"><a href="search.php?mod=forum&mobile=2" style="margin-left: 20px; color: #7F8393;"><em class="iconfont icon-search"></em></a></div>
			<h3>
				<ul>
		            <li{if $_GET[ 'order']=='dateline' || $_GET[ 'order']=='' } class="a" {/if}>
				        <a href="bzweibo.php?order=dateline">{lang latest}</a>
			        </li>
			        <li{if $_GET[ 'order']=='replies' } class="a" {/if}>
				        <a href="bzweibo.php?order=replies">{lang order_heats}{lang reply}</a>
			        </li>
			        <li{if $_GET[ 'order']=='views' } class="a" {/if}>
				        <a href="bzweibo.php?order=views">{lang order_heats}{lang views}</a>
			        </li>
		        </ul>	
			</h3>
			<div class="banzhuan-discuz-header-y"><a href="<!--{if $_GET['mod'] == 'forumdisplay' || $_GET['mod'] == 'viewthread'}-->forum.php?mod=post&action=newthread&fid=$_G['fid']<!--{else}-->forum.php?mod=misc&action=nav<!--{/if}-->" class="iconfont icon-fatie"></a></div>
		</div>
		<div class="mobile-inner-nav bz">
			<div class="banzhuan-h10"></div>
			<div class="mobile-inner-nav-list">
				
			    <a href="search.php?mod=forum&mobile=2" style="animation-delay: 0.1s;"><em class="iconfont icon-search"></em>&nbsp;&nbsp;{lang search}</a>
			    <a href="<!--{if $_GET['mod'] == 'forumdisplay' || $_GET['mod'] == 'viewthread'}-->forum.php?mod=post&action=newthread&fid=$_G['fid']<!--{else}-->forum.php?mod=misc&action=nav<!--{/if}-->" style="animation-delay: 0.2s;"><em class="iconfont icon-fatie"></em>&nbsp;&nbsp;{lang send_posts}</a>
			</div>
		</div>
	</div>
</div>
<script>
	$(window).load(function () {
	  $(".mobile-inner-header-icon").click(function(){
	  	$(this).toggleClass("mobile-inner-header-icon-click mobile-inner-header-icon-out");
	  	$(".mobile-inner-nav").slideToggle(250);
	  });
	  $(".mobile-inner-nav a").each(function( index ) {
	  	$( this ).css({'animation-delay': (index/10)+'s'});
	  });
	});
</script>
<div class="banzhuan-top"></div>
<!-- header end -->

<div class="bz-bg-f5f5f5" style="position: relative;">
	<!--{eval $list_count=0;}-->
	<!--{loop $manylist $thread}-->
	<!--{eval $list_count+=1;}-->
	<!--{eval $gr_uid = DB::result_first("SELECT gr_uid FROM ".DB::table('common_member')." WHERE `uid`= '$thread[authorid]'");}-->

	<!--{eval $gr_uid=$gr_uid?$gr_uid:0;$gr_type = DB::result_first("SELECT gr_type FROM gr_users WHERE `id`= '$gr_uid'");}-->

	<!--{eval $discuz_uid = $_G[uid]?$_G[uid]:'0';}-->

	<!--{eval $discuz_gr_uid = DB::result_first("SELECT gr_uid FROM ".DB::table('common_member')." WHERE `uid`=$discuz_uid");}-->
	
	<!--{eval $discuz_gr_uid= $discuz_gr_uid?$discuz_gr_uid:0;$discuz_gr_type = DB::result_first("SELECT gr_type FROM gr_users WHERE `id`=$discuz_gr_uid");}-->

	<!--{if $discuz_gr_type==4 && $gr_type==4 && $gr_uid!=$discuz_gr_uid}-->
	{eval continue;}
	<!--{/if}-->
	<div class="bz-mt10 bz-card">
		
		<header class="weibo-header">
			<div class="weibo-header-left">
		        <a href="home.php?mod=space&uid=$thread[authorid]&do=profile&mobile=2"><img src="uc_server/avatar.php?uid={$thread[authorid]}&size=midlle"/></a>
		    </div>
	    	<div class="weibo-header-middle">
			    <div class="name">
			    	    <a href="home.php?mod=space&uid=$thread[authorid]&do=index">
			    	    	    $thread[author]

			    	    	    	<!--{if $thread[gender] == 0}-->
                        <!--{/if}-->
                        <!--{if $thread[gender] == 1}-->
                  	    <i class="iconfont icon-shouyezhuyetubiao06 color-nan"></i>
                        <!--{/if}-->
                        	<!--{if $thread[gender] == 2}-->
                  	    <i class="iconfont icon-iconfontshouyezhuyetubiao07 color-nv"></i>
                        <!--{/if}-->                        
			    	    </a>
			    </div>
			    <div class="time-from">
			    	    <span class="color-c">{echo date('Y-m-d H:i', $thread['dateline']);}</span>
			    	    <!--{if $thread[groupid] < 4}-->
			    	    <em class="group-3">$thread[grouptitle]</em>
			    	    <!--{else}-->
			    	    <em class="group-other">$thread[grouptitle]</em>
			    	    <!--{/if}-->
			    </div>
		    </div>
		    <div class="weibo-header-right">
    				<!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
				        <span class="iconfont icon-top01 color-zhiding" style="margin-right: 5px;"></span>
				        <!--{elseif $thread['digest'] > 0}-->
				        <span class="iconfont icon-jing color-jinghua" style="margin-right: 5px;"></span>
				        <!--{elseif $thread['attachment'] == 2 && $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
			        <!--{/if}-->
                    <a href="forum.php?mod=forumdisplay&fid=$thread[fid]&filter=lastpost&orderby=lastpost&mobile=2" class="color-c">#$thread[name]</a>
		    </div>
		</header>
        <section class="weibo-detail">
            <a href="forum.php?mod=viewthread&tid=$thread[tid]" title="$thread[subject]">
		        <h2>$thread[subject]</h2>
		        <p class="color-c"><!--{echo cutstr($thread['message'],150)}--></p>
			    <!--{if $thread['attachment'] == 2}-->
			    	<!--{eval $firstpid = DB::result_first("SELECT pid FROM ".DB::table('forum_post')." WHERE tid='$thread[tid]' AND first=1 "); }-->
			        <!--{eval $table='forum_attachment_'.substr($thread['tid'], -1);}-->
			        <!--{eval $query = DB::fetch_all("SELECT aid,tid,description,filename FROM ".DB::table($table)." WHERE tid='$thread[tid]' AND isimage!=0 AND pid='$firstpid' ORDER BY `dateline` DESC LIMIT 0,12"); }-->
			        <!--{eval $thread['pics']=count($query);}-->		        
		            <!--{eval $picnum = count($query);}-->
		            
				    <!--{if $picnum > 8}-->
				    <!--{eval $litpicnum = '9';}-->
				    <!--{else}-->
				    <!--{eval $litpicnum = $picnum ;}-->
				    <!--{/if}-->
		        	
		            <!--{eval $query2 = DB::fetch_all("SELECT aid,tid,description,filename FROM ".DB::table($table)." WHERE tid='$thread[tid]' AND isimage!=0  AND pid='$firstpid' ORDER BY `dateline` DESC LIMIT 0,$litpicnum"); }-->
		        
					<!--{if $litpicnum == 0}--> 
		            
		            <!--{elseif $litpicnum == 1}--> 
		            <div class="bz-wall-list-1">
			            <!--{loop $query2 $pic}-->
			                <div class="z picbox"><a href="forum.php?mod=viewthread&tid=$thread[tid]#aimg_$pic[aid]"><img src="{eval echo(getforumimg($pic[aid],0,500,500))}" /></a></div>
			            <!--{/loop}-->
		            </div>          
		            
		            <!--{elseif $litpicnum == 4}-->
		            <div class="bz-wall-list-4">
			            <!--{loop $query2 $pic}-->
			                <div class="z picbox"><a href="forum.php?mod=viewthread&tid=$thread[tid]#aimg_$pic[aid]"><img src="{eval echo(getforumimg($pic[aid],0,200,200))}" /></a></div>
			            <!--{/loop}-->
		            </div>
		            
		            <!--{else}-->
		            <div class="bz-wall-list-other">
			            <!--{loop $query2 $pic}-->
			                <div class="z picbox"><a href="forum.php?mod=viewthread&tid=$thread[tid]#aimg_$pic[aid]"><img src="{eval echo(getforumimg($pic[aid]))}" /></a></div>
			            <!--{/loop}-->
		            </div>
		            <!--{/if}-->

		        <!--{/if}-->
		    </a>
		</section>
		<div class="banzhuan-clear"></div>
		<footer class="weibo-footer bz">
		    <ul>
		        <li><a href="forum.php?mod=viewthread&tid=$thread[tid]"><i class="iconfont icon-attention color-c"></i><em class="color-c">$thread[views]</em></a></li>
		        <li class="ping"><a href="forum.php?mod=viewthread&tid=$thread[tid]"><i class="iconfont icon-comment color-c"></i><em class="color-c">$thread[replies]</em></a></li>
		        <!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
		        <li><a href="forum.php?mod=viewthread&tid=$thread[tid]"><i class="iconfont icon-appreciatelight color-c"></i><em class="color-c">$thread[recommend_add]</em></a></li>
		        <!--{/if}-->
		    </ul>
	   </footer>
	</div>
	<!--{/loop}-->
</div>
<!--{if $_GET['order']}-->
<!--{if $allnum>$num}-->

<!--{/if}-->
<!--{/if}-->

$pagenav

<!--{template common/footer}-->